package com.msmall.community.dpt.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.msmall.base.model.BaseObject;

/**
 * 最顶级栏目
 * @author Administrator
 *
 */
@Entity
@Table(name="base_department")
public class Department extends BaseObject{

	private static final long serialVersionUID = 1860691504514016427L;

	@Id
	@Column(name="department_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long departmentid;
	
	/**
	 *父层ID
	 */
	@Column(name="parent_id")
	private Long parentid;
	/**
	 * 分类名称
	 */
	@Column(name="title")
	private String title;
	
	/**
	 * 分类显示顺序
	 */
	@Column(name="orders")
	private Integer orders;
	
	@Column(name="enabled")
	private Short enabled;
	
	@Column(name="description")
	private String description;
	
	/**
	 * 创建者
	 */
	@Column(name="user_id")
	private Long userid;
	
	@Column(name="create_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getOrders() {
		return orders;
	}

	public void setOrders(Integer orders) {
		this.orders = orders;
	}

	public Short getEnabled() {
		return enabled;
	}

	public void setEnabled(Short enabled) {
		this.enabled = enabled;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getDepartmentid() {
		return departmentid;
	}

	public void setDepartmentid(Long departmentid) {
		this.departmentid = departmentid;
	}

	public Long getParentid() {
		return parentid;
	}

	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}

	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

}
